package com.zqweb.common.constant;

// 库存模块的常量类
public class WareConstant {
    // 采购单的状态枚举类
    public enum purchaseStatus{
        CREATED(0,"新建"),ASSIGNED(1,"已分配"),RECEIVED(2,"已领取"),
        FINISHED(3,"已完成"),HASERRORED(4,"有异常");

        private int code;
        private String msg;
        purchaseStatus(int code,String msg){
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

    // 采购需求的状态枚举类
    public enum purchaseDetailStatus{
        CREATED(0,"新建"),ASSIGNED(1,"已分配"),BUYING(2,"正在采购"),
        FINISHED(3,"已完成"),HASERRORED(4,"采购失败");

        private int code;
        private String msg;
        purchaseDetailStatus(int code,String msg){
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

}
